home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-12-17 | 2.8 KB | 93 lines | [TEXT/MPS ] |
- #
- # ****************************************************************************
- #
- # File Name: Text.Lib
- #
- # Contains: xxx put contents here xxx
- #
- # Written by: Kevin Avoy, Ken Landreth, Michael Leong, Gil Spencer et al
- #
- # Copyright: © 1993 by Apple Computer, Inc., all rights reserved.
- #
- # ****************************************************************************
- # C h a n g e H i s t o r y (most recent first):
- # ****************************************************************************
- #
- # Vers Date Author Description
- # ---- -------- ------ ---------------------------------------------
- # <1+> 5/21/93 NAGA Adding header and porting old files to follow new standards
- #
- # ****************************************************************************
- #
-
- ########################################################################
- # External libraries
- #=======================================================================
- Libraries "Font.Lib","String.Lib";
-
-
-
- #########################################################################
- # TypeWord(pNumChars := 'Random')
- #=======================================================================
- # Author:
- # Description:
- # Parameters:
- # Example:
- #=======================================================================
- # History:
- #
- #########################################################################
- TASK TypeWord(pNumChars := 'Random')
- begin
- if (pNumChars = 'Random')
- begin
- randomWord := RandomString(Random(1,10));
- Type k:{"{randomWord} "};
- end;
- end;
-
- #########################################################################
- # TypeSentence(pNumWords := 20)
- #=======================================================================
- # Author:
- # Description:
- # Parameters:
- # Example:
- #=======================================================================
- # History:
- #
- #########################################################################
- TASK TypeSentence(pNumWords := 20)
- begin
- for i := 1 to pNumWords
- TypeWord();
- punctuationList :={'!',',','.','?',':',';'};
- RandPunct := Random(1,(Card(punctuationList)));
- whichPunct := punctuationList[RandPunct];
- Type k:{whichPunct};
- end;
-
- #########################################################################
- # TypeParagraph(pNumSentences := 6)
- #=======================================================================
- # Author:
- # Description:
- # Parameters:
- # Example:
- #=======================================================================
- # History:
- #
- #########################################################################
- TASK TypeParagraph(pNumSentences := 6)
- begin
- Type K:{tabKey};
- for i := 1 to pNumSentences
- begin
- SetFontParams(RandomFontRecords());
- TypeSentence();
- Type K:{" "};
- end;
- Type K:{returnKey, returnKey};
- end;
-